import type { TineConfigure } from '@tencent/rollup-config-tine';

export default {
    entry: './src/index.ts',
    output: {
        format: 'esm',
        file: './dist/index.js',
        exports: 'named',
        sourcemap: true
    },

    build: {
        babelType: 'h5-lib',
        target: 'es6',
        isMinify: false
    },
    external: [/^@tarojs\/\w+$/],
    declaration: {
        output: {
            file: './dist/index.d.ts'
        }
    }
} satisfies TineConfigure;
